
{if $atom_id}
{getAtomData atom_id=$atom_id}

	{if $atom_valid}
		<div class="box" style="{$atom_data[$atom_id].css_text}">
		{if $atom_data[$atom_id].auth === true}
			<input type="hidden" value="{$atom_id}" />
			{if $atom_data[$atom_id].edit_type == "inline"}
				<div class="edit_inline" style="position: relative;">
				{$atom_data[$atom_id].title.text}
				</div>
			{/if}
			{if $atom_data[$atom_id].edit_type == "popup"}
				<div class="edit_popup" style="position: absolute; display:none;">
				{$atom_data[$atom_id].title.text}
				</div>
			{/if}
		{/if}

		{if $atom_data[$atom_id].title.show === true}
		<h1>{$atom_data[$atom_id].title.text}</h1>
		{/if}

		{include file=$atom_data[$atom_id].template
				data=$atom_data[$atom_id].data
				children=$atom_data[$atom_id].children
				auth=$atom_data[$atom_id].auth}

		</div>
	{/if}
{/if}
